package com.bootdo.blog.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.blog.dao.TargetMapper;
import com.bootdo.blog.domain.TargetDO;
import com.bootdo.blog.service.TargetService;



@Service
public class TargetServiceImpl implements TargetService {
	@Autowired
	private TargetMapper targetMapper;
	
	@Override
	public TargetDO get(Integer targetId){
		return targetMapper.get(targetId);
	}
	
	@Override
	public List<TargetDO> list(Map<String, Object> map){
		return targetMapper.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return targetMapper.count(map);
	}
	
	@Override
	public int save(TargetDO target){
		return targetMapper.save(target);
	}
	
	@Override
	public int update(TargetDO target){
		return targetMapper.update(target);
	}
	
	@Override
	public int remove(Integer targetId){
		return targetMapper.remove(targetId);
	}
	
	@Override
	public int batchRemove(Integer[] targetIds){
		return targetMapper.batchRemove(targetIds);
	}
	
}
